
import Layout from "@/page/index/";
export default [
  {
    path: "/home",
    component: Layout,
    redirect: "/home/index",
    children: [
      {
        path: "index",
        name: "首页",
        meta: {
          title: "首页"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/home/index")
      },
      {
        path: "news",
        name: "通知公告",
        meta: {
          title: "通知公告"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/home/tongzhi/index")
      },
      {
        path: "news-detail/:id",
        name: "详情",
        meta: {
          title: "详情"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/home/tongzhi/detail")
      },
      {
        path: "aboutus",
        name: "医院简介",
        meta: {
          title: "医院简介"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/user/aboutus/index")
      },
      {
        path: "road",
        name: "来院路线",
        meta: {
          title: "来院路线"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/user/aboutus/road/index")
      },
      {
        path: "navigation",
        name: "院内导航",
        meta: {
          title: "院内导航"
        },
        component: () =>
          import(/* webpackChunkName: "home" */ "@/views/user/aboutus/navigation/index")
      },
    ]
  },
  {
    path: "/user",
    component: Layout,
    redirect: "/user/index",
    children: [
      {
        path: "index",
        name: "用户中心",
        meta: {
          title: "用户中心",
          // keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/index")
      },
      {
        path: "feedback",
        name: "建议反馈",
        meta: {
          title: "建议反馈"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/feedback/index")
      },
      {
        path: "feed-status",
        name: "建议反馈成功",
        meta: {
          title: "建议反馈成功"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/feedback/tips")
      },
      {
        path: "info",
        name: "基本信息",
        meta: {
          title: "基本信息"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/info/index")
      },

      {
        path: "reset-phone",
        name: "更换手机号",
        meta: {
          title: "更换手机号"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/reset-phone/index")
      },
      {
        path: "reset-again",
        name: "验证新手机号",
        meta: {
          title: "验证新手机号"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/reset-phone/last")
      },
      {
        path: "bind-phone",
        name: "绑定手机号",
        meta: {
          title: "绑定手机号"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/login/bindphone")
      },
      {
        path: "order",
        component: Layout,
        redirect: "order/index",
        children: [
          {
            path: "index",
            name: "订单管理",
            meta: {
              title: "订单管理",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/order/index")
          },
          {
            path: "detail/:id",
            name: "订单详情",
            meta: {
              title: "订单详情",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/order/detail/index")
          },
          {
            path: "comment/:id",
            name: "发表评价",
            meta: {
              title: "发表评价"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/order/comment/index")
          },
        ]
      },
      {
        path: "covid",
        component: Layout,
        redirect: "covid/index",
        children: [
          {
            path: "index",
            name: "核酸检测",
            meta: {
              title: "核酸检测"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/covid/index")
          },
          {
            path: "check",
            name: "用户须知",
            meta: {
              title: "用户须知"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/covid/check/index")
          },
          {
            path: "form",
            name: "提交信息",
            meta: {
              title: "提交信息"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/covid/form/index")
          },
          {
            path: "success",
            name: "成功",
            meta: {
              title: "成功"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/covid/form/success")
          }
        ]
      },
      {
        path: "timetable",
        component: Layout,
        redirect: "index",
        children: [
          {
            path: "index",
            name: "产检时间表",
            meta: {
              title: "产检时间表"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/time-table/index")
          },
          {
            path: "detail/:id",
            name: "",
            meta: {
              title: ""
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/time-table/detail/index")
          },

        ]
      },
      {
        path: "price-table",
        name: "价格公示",
        meta: {
          title: "价格公示"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/price-table/index")
      },
      {
        path: "address",
        component: Layout,
        redirect: "index",
        children: [
          {
            path: "index",
            name: "地址管理",
            meta: {
              title: "地址管理",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/address/list/index")
          },
          {
            path: "detail/:id",
            name: "地址详情",
            meta: {
              title: "地址详情",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/address/detail/index")
          },
          {
            path: "add",
            name: "新增地址",
            meta: {
              title: "新增地址",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/address/add/index")
          },
        ]
      },
      {
        path: "subscribe",
        component: Layout,
        redirect: "index",
        children: [
          {
            path: "index",
            name: "我的预约",
            meta: {
              title: "我的预约"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/subscribe/index")
          },
          {
            path: "detail/:id",
            name: "预约详情",
            meta: {
              title: "预约详情"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/subscribe/detail/index")
          },
        ]
      },
      {
        path: "office",
        component: Layout,
        redirect: "/index",
        children: [
          {
            path: "index",
            name: "就诊管理",
            meta: {
              title: "就诊管理",
              keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/office/admin/index")
          },
          {
            path: "add",
            name: "添加就诊人",
            meta: {
              title: "添加就诊人",
              keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/office/add/index")
          },
          {
            path: "edit/:id",
            name: "修改就诊人",
            meta: {
              title: "修改就诊人",
              keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/office/edit/index")
          },
        ]
      },
     
      {
        path: "prove",
        name: "出生证明",
        meta: {
          title: "出生证明"
        },
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/user/certicard/index")
      },
      
      {
        path: "medical",
        component: Layout,
        redirect: '/index',
        children:[
          {
            path: 'index',
            name: '预约体检',
            meta: {
              title: "预约体检"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/medical/index")
          },
          {
            path: 'detail/:id',
            name: '体检详情',
            meta: {
              title: "体检详情"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/user/medical/detail/index")
          },
          {
            path: 'order',
            component: Layout,
            redirect: '/index',
            children: [
              {
                path: 'index',
                name: '提交订单',
                meta: {
                  title: "提交订单"
                },
                component: () =>
                  import(/* webpackChunkName: "user" */ "@/views/user/medical/order/index")
              },
              {
                path: 'select-time',
                name: '选择时间',
                meta: {
                  title: "选择时间"
                },
                component: () =>
                  import(/* webpackChunkName: "user" */ "@/views/user/medical/order/select-time")
              },
              {
                path: "success",
                name: "成功",
                meta: {
                  title: "成功"
                },
                component: () =>
                  import(/* webpackChunkName: "user" */ "@/views/user/medical/order/success")
              },
            ]
          },
        ]
      },
    ]
  },
  {
    path: "/huli",
    component: Layout,
    redirect: '/huli/index',
    children: [
      {
        path: 'index',
        name: '护理到家',
        meta: {
          title: "护理到家",
          // keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "huli" */ "@/views/huli/index")
      },
      {
        path: 'detail/:id',
        name: '护理到家详情',
        meta: {
          title: "护理到家详情",
          // keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "huli" */ "@/views/huli/detail/index")
      },
      {
        path: 'comment/:id',
        name: '护理到家全部评价',
        meta: {
          title: "护理到家全部评价",
          // keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "huli" */ "@/views/huli/comment/index")
      },

      {
        path: 'order',
        component: Layout,
        redirect: '/index',
        children: [
          {
            path: 'index',
            name: '提交订单',
            meta: {
              title: "提交订单",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "huli" */ "@/views/huli/order/index")
          },
          {
            path: 'select-time',
            name: '选择时间',
            meta: {
              title: "选择时间",
              // keepAlive: true
            },
            component: () =>
              import(/* webpackChunkName: "huli" */ "@/views/huli/order/select-time")
          },
          {
            path: "success",
            name: "成功",
            meta: {
              title: "成功"
            },
            component: () =>
              import(/* webpackChunkName: "user" */ "@/views/huli/order/success")
          },
        ]
      },
    ]
  },
];
